<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:tiles="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:shiro="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/default.css" />
    <link rel="stylesheet" href="/css/jquery-ui.min.css" />
    <link href="/js/facebox/facebox.css" rel="stylesheet">


    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/js/zui.min.js"></script>
    <script src="/js/facebox/facebox.js"></script>
    <script src="/js/bower_components/bootpag/lib/jquery.bootpag.js"></script>
    <script src="/js/paginator.js"></script>
    <script type="text/javascript" src="/js/app.js"></script>
</head>

<body>
    <div id="header">
        <div><span>智慧餐饮管理系统</span>
            <a href="/logout" class="pull-right" >退出</a>
        </div>
    </div>
    <div id="wrap">
        <div class="side">
            <div class="side-body">
                <nav class="menu" data-toggle="menu" style="color: #fff;">
                    <ul shiro:hasRole="ADMIN" class="nav nav-primary">
                        <li><a href="/admin/company/substore" th:class="${menuCss.currentFanfouCompanyStore}">分店管理</a></li>
                        <li><a href="/admin/company" th:class="${menuCss.currentFanfouCompany}">公司信息</a></li>
                    </ul>
                    <ul shiro:lacksRole="ADMIN" class="nav nav-primary">
                        <li><a href="/admin/category" th:class="${menuCss.currentFanfouCategory}">类别管理</a></li>
                        <li><a href="/admin/dishware" th:class="${menuCss.currentFanfouDishware}">一次性用品管理</a></li>
                        <li><a href="/admin/menu" th:class="${menuCss.currentFanfouMenu}">菜品管理</a></li>
                        <li><a href="/admin/role" th:class="${menuCss.currentFanfouRole}">角色管理</a></li>
                        <li><a href="/admin/user/waiters" th:class="${menuCss.currentFanfouUser}">员工管理</a></li>
                        <li><a href="/admin/table" th:class="${menuCss.currentFanfouDiningTable}">台桌管理</a></li>
                        <li><a th:href="@{/admin/store/{id}(id=${user.storeId})}" th:class="${menuCss.currentFanfouStore}">店铺管理</a></li>
                    </ul>
                </nav>
            </div>
            <div class="side-handle">
                <span style="background-color: #d0d0d0;padding: 1px 0;">
                <i class="icon_left"></i>
                </span>
            </div>
        </div>
        <div class="main">
            <section layout:fragment="top_menu" class="top_menu">
            </section>
            <section id="list_container" class="main_content" layout:fragment="content">
                <p>Page content goes here</p>
            </section>
        </div>
    </div>

    <section layout:fragment="extra_scripts">
    </section>
</body>

</html>